package learner;

import java.util.ArrayList;
import java.util.List;

import learner.dtw.DTWLearner;
import learner.hmm.BaumWelchLearner;

public class Main {

	public static void main(String[] args) {
		PatternReader reader = new PatternReader();
		for (PatternType patternType : PatternType.values()) {
			List<Pattern> patterns = new ArrayList<Pattern>();
			patterns = reader.givePatterns(patternType.ordinal()+1);
			System.out.println("Patronen voor " + patternType+ ":");
			ModelLearner learner = new DTWLearner();
			PatternModel model = learner.learnModel(patternType.name(), patterns);
			model.writeToFile("models/"+ model.getModelTypeName() + (patternType.ordinal() + 1) + ".json");
		}
		System.out.println("Modellen toegevoegd aan map models!");
	}
}
